﻿@{
    Layout = null;
}
<!DOCTYPE html>
<html class="x-admin-sm">
<head>
    <meta charset="UTF-8">
    <title>条码出入库记录明细</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link href="~/X-admin/css/font.css" rel="stylesheet" />
    @* <script src="~/js/layui/layui.js"></script> *@
    <script src="~/X-admin/lib/layui/layui.js"></script>
    <link href="~/X-admin/css/xadmin.css" rel="stylesheet" />
    <script src="~/X-admin/js/jquery.min.js"></script>
    <script src="~/X-admin/js/xadmin.js"></script>
    <script src="~/js/framework/sysframework.js"></script>
    <script src="~/js/framework/commonjs.js"></script>
</head>
<body>
    <div class="layui-fluid">
        @* <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">

        </div>
        </div> *@
        <div class="layui-card">
            <div class="layui-inline layui-show-xs-block" style="margin-top: 15px; margin-left: 15px">
            </div>
            <form class="layui-form layui-col-space5" name="qForm" id="qForm">

                <input type="hidden" name="ftCode" id="ftCode" />
            </form>
            <div class="layui-table-body" id="layui-table-main">
                <table class="layui-hide" id="list" lay-filter="list"></table>
            </div>
        </div>
    </div>
</body>

</html>

<script>
    var ftCode = "";
    function loadData() {
        layui.use('table', function () {
   
   
            var table = layui.table;
            table.render({
                elem: '#list'
                , cols: [[ //标题栏
                    // { type: 'checkbox' }
                    { field: 'mCode', title: '出入库编码', width: 160 }
                    , { field: 'barCode', title: '条码', width: 130 }
                    , { field: 'proCode', title: '存货编码', width: 110, }
                    , { field: 'proName', title: '存货名称', width: 150 }
                    , { field: 'spec', title: '规 格', width: 120 }
                    , { field: 'number', title: '数量', width: 130 }
  
                    , { field: 'yunfei', title: '运 费', width: 90 }
                    , { field: 'songhuo', title: '送货费用', width: 120 }
                ]], done: function (res, curr, count) {
                  
               
                }

                , url: "../Plan/GetDataList?dataType=sflde&condition=" + ftCode
                , skin: 'row' //表格风格
                , even: true
                , page: false //是否显示分页
                , limits: [10, 15, 20]
                , limit: 10 //每页默认显示的数量
            });

   
        });

    }
    $(function () {
        ftCode = getUrlVariable("ftCode");
       
        loadData();
    })

</script>